package com.guigu.youxuan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("gather_details")
public class GatherDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 入库申请明细id
     */
    @TableId(value = "gather_details_id", type = IdType.AUTO)
    private Integer gatherDetailsId;

    /**
     * 入库单id 父级序号
     */
    private Integer gatherId;

    /**
     * 商品id
     */
    private Integer goodsId;
    @TableField(exist = false)
    /**
     * 商品名称
     */
    private String name;

    /**
     * 供货商id
     */
    private Integer supplierId;
    @TableField(exist = false)
    /**
     * 供货商名称
     */
    private String companyName;

    /**
     * 仓库id
     */
    private Integer warehouseId;
    @TableField(exist = false)
    /**
     * 仓库名称
     */
    private String warehouseName;
    @TableField(exist = false)
    /**
     * 商品图片
     */
    private String imgLink;

    /**
     * 描述
     */
    private String productDescribe;

    /**
     * 数量
     */
    private Integer amount;

    /**
     * 单位
     */
    private String amountUnit;

    /**
     * 单价
     */
    private Integer costPrice;

    /**
     * 小计
     */
    private Integer subtotal;


}
